package au.id.kurt.acmf.servlet;

import java.io.IOException;
import java.util.Date;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ContentServiceServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;

	protected void doDelete(HttpServletRequest req, HttpServletResponse resp) {
	}

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
	}

	protected void doHead(HttpServletRequest req, HttpServletResponse resp) {
	}

	protected void doOptions(HttpServletRequest req, HttpServletResponse resp) {
	}

	protected void doPost(HttpServletRequest req, HttpServletResponse resp) {
		String[] pathInfo = null;
		if(req.getPathInfo() != null) {
			pathInfo = req.getPathInfo().split("/");
		}
		System.out.println(pathInfo);
	}

	protected void doPut(HttpServletRequest req, HttpServletResponse resp) {
	}

	protected void doTrace(HttpServletRequest req, HttpServletResponse resp) {
	}

	protected long getLastModified(HttpServletRequest req) {
		return new Date().getTime();
	}
}
